package com.tlgen.modules.drugstore.repository;

import com.tlgen.modules.drugstore.domain.MedicinalData;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

/**
 * @author: tlgen
 * @Discription: 药品数据持久层
 */
public interface MedicinalDataRepository extends JpaRepository<MedicinalData, Long>, JpaSpecificationExecutor<MedicinalData> {

    /**
     * 根据名称查询
     * @param medicinalName
     * @return
     */
    MedicinalData findByMedicinalName(String medicinalName);

}
